

let a = ''

document.addEventListener('DOMContentLoaded', function () {
    chrome.tabs.query({ active: true, currentWindow: true }, (tabs) => {
        console.log(tabs);
    //     a=tabs
      let activeTab = tabs[0];
    //   let url = new URL(activeTab.url);
    //   let hierarchy = url.pathname.split('/').filter(Boolean);
    //   document.getElementById('hierarchy').textContent = hierarchy.join(' > ');
      document.getElementById('hierarchy').textContent =JSON.stringify(activeTab.url)
    });
  });
  